package com.doctor.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.doctor.common.Constat;

/**
 * 案例信息表
 */
@Entity
@Table(name = "tb_case")
public class Case implements Serializable {

	private static final long serialVersionUID = 3944268374260457893L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/** 案例类型id */
	private Integer typeId;

	/***/
	private String typeName;

	/** 图片 */
	private String picture;

	/** 案例内容 */
	private String content;

	/** 创建时间 */
	private String createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public String getTypeName() {
		return Constat.CASE_MAP.get(typeId+"");
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

}